package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 马毅爽
* @description 针对表【shopping_cart(购物车)】的数据库操作Service
* @createDate 2023-11-09 11:33:13
*/
public interface ShoppingCartService extends IService<ShoppingCart> {

    void addCart(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> listByUserId();

    void cleanCart();

    void delete(ShoppingCartDTO shoppingCartDTO);
}
